

class Flashlight:
    def __init__(self, id: int, userid: int, filename: str, fileurl: str, filetype: str, task: str, status: str, result: str, created_time: str, model: str, flow: str):
        # id 编号
        self.id = id
        # 用户id
        self.userid = userid
        # 文件名
        self.filename = filename
        # 文件地址
        self.fileurl = fileurl
        # 文件类型
        self.filetype = filetype
        # 任务类型
        self.task = task
        # 任务状态
        self.status = status
        # 任务结果
        self.result = result
        # 创建时间
        self.created_time = created_time
        # 模型名称
        self.model = model
        # 流程名称
        self.flow = flow

    @property
    def id(self) -> int:
        return self._id

    @id.setter
    def id(self, value: int):
        if not isinstance(value, int):
            raise ValueError("id must be an integer.")
        self._id = value

    @property
    def userid(self) -> int:
        return self._userid

    @userid.setter
    def userid(self, value: int):
        if not isinstance(value, int):
            raise ValueError("userid must be an integer.")
        self._userid = value

    @property
    def filename(self) -> str:
        return self._filename

    @filename.setter
    def filename(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("filename must be a string and not exceed 255 characters.")
        self._filename = value

    @property
    def fileurl(self) -> str:
        return self._fileurl

    @fileurl.setter
    def fileurl(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("fileurl must be a string and not exceed 255 characters.")
        self._fileurl = value

    @property
    def filetype(self) -> str:
        return self._filetype

    @filetype.setter
    def filetype(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("filetype must be a string and not exceed 255 characters.")
        self._filetype = value

    @property
    def task(self) -> str:
        return self._task

    @task.setter
    def task(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("task must be a string and not exceed 255 characters.")
        self._task = value

    @property
    def status(self) -> str:
        return self._status

    @status.setter
    def status(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("status must be a string and not exceed 255 characters.")
        self._status = value

    @property
    def result(self) -> str:
        return self._result

    @result.setter
    def result(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("result must be a string and not exceed 255 characters.")
        self._result = value

    @property
    def created_time(self) -> str:
        return self._created_time

    @created_time.setter
    def created_time(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("created_time must be a string and not exceed 255 characters.")
        self._created_time = value

    @property
    def model(self) -> str:
        return self._model

    @model.setter
    def model(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("model must be a string and not exceed 255 characters.")
        self._model = value

    @property
    def flow(self) -> str:
        return self._flow

    @flow.setter
    def flow(self, value: str):
        if not isinstance(value, str) or len(value) > 255:
            raise ValueError("flow must be a string and not exceed 255 characters.")
        self._flow = value
